package framework.service;

import framework.bo.SysUserRole;
import framework.util.layui._LayuiUtil;
import framework.util.queryFilter.service.IBaseService;
import framework.util.queryFilter.service.impl.QueryFilter;
import framework.util.queryFilter.vo.Where;
import framework.util.shiro._ShiroUtil;
import framework.vo.SysRoleVo;

import java.util.List;
import java.util.stream.Collectors;

public interface SysUserRoleService extends IBaseService<SysUserRole, Integer> {

    /**
     * @return 返回当前用户的所有角色的主键
     */
    public List<Integer> getSysRoleLidsByCurrentUser();

    /**
     * @return 返回所有isDelete为false的SysRole，并且如果当前用户有的角色，SysRoleVo的isThisRole为true；否则为false
     */
    public List<SysRoleVo> getSysRoleVoByUserLid(Integer SysUserLid);

}
